package com.itheima.io.file.demo03;

import java.io.File;

public class FileDemo03 {

    public static void main(String[] args) {

        File file = new File("D:\\2019.7.30heima\\就业班\\2019.8.25\\hmjava359\\hmjava359-day10\\itheima-io-file\\a.txt");
        File file1 = new File("D:\\2019.7.30heima\\就业班\\2019.8.25\\hmjava359\\hmjava359-day10\\itheima-io-file");

        System.out.println(file.exists());
        System.out.println(file1.exists());
        System.out.println("---------------.exists()-----------------------");

        System.out.println(file.isDirectory());
        System.out.println(file1.isDirectory());
        System.out.println("---------------.isDirectory()-----------------------");

        System.out.println(file.isFile());
        System.out.println(file1.isFile());
        System.out.println("---------------.isFile()-----------------------");














    }
}
